/*
 * XML Type:  RecurringInstructions
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.RecurringInstructions
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML RecurringInstructions(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class RecurringInstructionsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.RecurringInstructions
{
    
    public RecurringInstructionsImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName NINSTS$0 = 
        new javax.xml.namespace.QName("", "NINSTS");
    private static final javax.xml.namespace.QName FREQ$2 = 
        new javax.xml.namespace.QName("", "FREQ");
    
    
    /**
     * Gets the "NINSTS" element
     */
    public java.lang.String getNINSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NINSTS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "NINSTS" element
     */
    public net.ofx.types.x2003.x04.NumberOfInstructionsType xgetNINSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.NumberOfInstructionsType target = null;
            target = (net.ofx.types.x2003.x04.NumberOfInstructionsType)get_store().find_element_user(NINSTS$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "NINSTS" element
     */
    public boolean isSetNINSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(NINSTS$0) != 0;
        }
    }
    
    /**
     * Sets the "NINSTS" element
     */
    public void setNINSTS(java.lang.String ninsts)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NINSTS$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NINSTS$0);
            }
            target.setStringValue(ninsts);
        }
    }
    
    /**
     * Sets (as xml) the "NINSTS" element
     */
    public void xsetNINSTS(net.ofx.types.x2003.x04.NumberOfInstructionsType ninsts)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.NumberOfInstructionsType target = null;
            target = (net.ofx.types.x2003.x04.NumberOfInstructionsType)get_store().find_element_user(NINSTS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.NumberOfInstructionsType)get_store().add_element_user(NINSTS$0);
            }
            target.set(ninsts);
        }
    }
    
    /**
     * Unsets the "NINSTS" element
     */
    public void unsetNINSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(NINSTS$0, 0);
        }
    }
    
    /**
     * Gets the "FREQ" element
     */
    public net.ofx.types.x2003.x04.FrequencyEnum.Enum getFREQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FREQ$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.FrequencyEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "FREQ" element
     */
    public net.ofx.types.x2003.x04.FrequencyEnum xgetFREQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FrequencyEnum target = null;
            target = (net.ofx.types.x2003.x04.FrequencyEnum)get_store().find_element_user(FREQ$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "FREQ" element
     */
    public void setFREQ(net.ofx.types.x2003.x04.FrequencyEnum.Enum freq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FREQ$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FREQ$2);
            }
            target.setEnumValue(freq);
        }
    }
    
    /**
     * Sets (as xml) the "FREQ" element
     */
    public void xsetFREQ(net.ofx.types.x2003.x04.FrequencyEnum freq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FrequencyEnum target = null;
            target = (net.ofx.types.x2003.x04.FrequencyEnum)get_store().find_element_user(FREQ$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.FrequencyEnum)get_store().add_element_user(FREQ$2);
            }
            target.set(freq);
        }
    }
}
